package kamikaze.service.member;

import kamikaze.entity.User;
import kamikaze.support.HttpMethod;
import kamikaze.support.Service;
import kamikaze.support.ServiceConfig;
import kamikaze.support.ServiceContext;

@ServiceConfig(path = "user/home", method = HttpMethod.GET)
public class UserHomePage implements Service {

	@Override
	public String serve(ServiceContext ctx) throws Exception {

		User user = ctx.getUserSession().asUser();

		ctx.getRequest().setAttribute("user", user);

		return "user/home";
	}

}
